<html>
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title>Document</title>
    <link rel="stylesheet" type="text/css" href="__BOOTSTRAP__/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="__BOOTSTRAP__/css/bootstrap-theme.min.css">
    <link rel="stylesheet" type="text/css" href="__CSS__/msg.css"/>


    <script type="text/javascript" src="__JS__/jquery-1.11.1.min.js"></script>
    <script type="text/javascript" src="__BOOTSTRAP__/js/bootstrap.min.js"></script>

    <script type="javascript">
        $('#myTab a').click(function (e) {
            e.preventDefault()
            $(this).tab('show')
        })
    </script>
</head>
<body>

<div class="bs-example bs-example-tabs" role="tabpanel" data-example-id="togglable-tabs" id="table">
    <ul id="myTab" class="nav nav-tabs" role="tablist">
        <li role="presentation" class="active">
            <a href="#home" id="home-tab" role="tab" data-toggle="tab" aria-controls="home" aria-expanded="true">系统信息</a>
        </li>
    </ul>
    <div id="myTabContent" class="tab-content  home">
        <div role="tabpanel" class="tab-pane fade in active" id="home" aria-labelledBy="home-tab">

            <table class="table table-bordered">

                    <tbody>

                            <tr><th colspan="2">系统信息</th></tr>
                            <tr>
                                <td>服务器环境</td>
                                <td>{$data['serverSoft']}</td>
                            </tr>
                            <tr>
                                <td>操作系统</td>
                                <td>{$data['serverOs']}</td>
                            </tr>
                            <tr>
                                <td>PHP版本</td>
                                <td>{$data['phpVersion']}</td>
                            </tr>
                            <tr>
                                <td>MySQL版本</td>
                                <td>{$data['mysql_version'][0]['version']}</td>
                            </tr>
                            <tr>
                                <td>数据库大小</td>
                                <td>
                                    <?php if ($data['dbsize'] >=1024): ?>
                                    <?php printf("%.2f M",$data['dbsize']/1024); ?>
                                    <?php else: ?>
                                    <?php printf("%.2f KB",$data['dbsize']); ?>
                                    <?php endif ?>
                                </td>
                            </tr>
                            <tr>
                                <td>上传许可</td>
                                <td>{$data['fileupload']}</td>
                            </tr>
                            <tr>
                                <td>主机名</td>
                                <td>{$data['serverUri']}</td>
                            </tr>
                            <tr>
                                <td>脚本超时</td>
                                <td>{$data['maxExcuteTime']}</td>
                            </tr>
                            <tr>
                                <td>内存限制</td>
                                <td>{$data['maxExcuteMemory']}</td>
                            </tr>
                    </tbody>


            </table>

        </div>

    </div>
</div>

</body>
</html>